// import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: AppRouteRecordRaw = {
	path: '/dashboard',
	name: 'dashboard',
	//  component: DEFAULT_LAYOUT,
	redirect: '/dashboard/dashboardindex',
	meta: {
		locale: '首页',
		ignoreCache: true,
		requiresAuth: true,
		roles: '*',
		icon: 'icon-dashboard',
		order: 0,
		hideInMenu: false,
	},
	children: [{
		path: 'dashboardindex',
		name: 'dashboardindex',
		component: () => import('@/views/imgadmin/index.vue'),
		meta: {
			locale: '首页',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'dashboard'
		},
	},
	{
		path: 'outbox',
		name: 'outbox',
		component: () => import('@/views/outbox/index.vue'),
		meta: {
			locale: '消息通知',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'outbox'
		},
	},
	{
		path: 'case',
		name: 'case',
		component: () => import('@/views/case/case.vue'),
		meta: {
			locale: '病例学习',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'case'
		},
	},
	{
		path: 'user',
		name: 'user',
		component: () => import('@/views/user/user.vue'),
		meta: {
			locale: '个人中心',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'user'
		},
	},
	{
		path: 'record',
		name: 'record',
		component: () => import('@/views/user/record.vue'),
		meta: {
			locale: '个人中心',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'record'
		},
	},
	{
		path: 'favorite',
		name: 'favorite',
		component: () => import('@/views/favorite/favorite.vue'),
		meta: {
			locale: '收藏夹',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'favorite'
		},
	}, {
		path: 'bookMark',
		name: 'bookMark',
		component: () => import('@/views/bookMark/bookMark.vue'),
		meta: {
			locale: '书签',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'bookMark'
		},
	},
	{
		path: 'password',
		name: 'password',
		component: () => import('@/views/password/password.vue'),
		meta: {
			locale: '修改密码',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'password'
		},
	},
	{
		path: 'feedback',
		name: 'feedback',
		component: () => import('@/views/user/feedback.vue'),
		meta: {
			locale: '意见反馈',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'password'
		},
	},
	{
		path: 'userinfo',
		name: 'userinfo',
		component: () => import('@/views/user/userinfo.vue'),
		meta: {
			locale: '用户信息',
			ignoreCache: true,
			requiresAuth: true,
			roles: '*',
			hideInMenu: true,
			activeMenu: 'userinfo'
		},
	},
		// userinfo.vue
	],
	component: undefined
};

export default DASHBOARD;